Skip to content

Parse pyproject.toml to determine poetry use. #344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2019
Merged

Parse pyproject.toml to determine poetry use. #344

merged 1 commit into from
Apr 15, 2019

Conversation

squaresurf
Copy link
Contributor

Why:

  • The pyproject.toml file is for more than just poetry.

This change addresses the need by:

  • Add test for use case where pyproject.toml is only used for black.
  • Add toml parser to package.json.
  • Update poetry.js to base poetry usage on whether or not the build
    system requires it.

Fixes: #324

Why:

* The pyproject.toml file is for more than just poetry.

This change addresses the need by:

* Add test for use case where pyproject.toml is only used for black.
* Add toml parser to package.json.
* Update poetry.js to base poetry usage on whether or not the build
  system requires it.

Fixes: #324
@dschep dschep merged commit a837d0c into serverless:master Apr 15, 2019
@squaresurf squaresurf deleted the non-build-pyproject branch April 15, 2019 18:05
miketheman added a commit to miketheman/serverless-python-requirements that referenced this pull request Feb 25, 2020
During the evaluation in the package phase, we determine whether a
`requirements.txt` file exists, or whether we need to generate one.

Since the `pyproject.toml` file is used by poetry, but only if a stanza
is contained inside the file, use the function `isPoetryProject()` along
with the configuration value, thereby reducing the need for a project to
have to declare a configuration override.

Refs serverless#324
Refs serverless#344
Fixes serverless#400

Signed-off-by: Mike Fiedler <[email protected]>
miketheman added a commit to miketheman/serverless-python-requirements that referenced this pull request Feb 25, 2020
During the evaluation in the package phase, we determine whether a
`requirements.txt` file exists, or whether we need to generate one.

Since the `pyproject.toml` file is used by poetry, but only if a stanza
is contained inside the file, use the function `isPoetryProject()` along
with the configuration value, thereby reducing the need for a project to
have to declare a configuration override.

Refs serverless#324
Refs serverless#344
Fixes serverless#400

Signed-off-by: Mike Fiedler <[email protected]>
miketheman added a commit to miketheman/serverless-python-requirements that referenced this pull request Feb 28, 2020
During the evaluation in the package phase, we determine whether a
`requirements.txt` file exists, or whether we need to generate one.

Since the `pyproject.toml` file is used by poetry, but only if a stanza
is contained inside the file, use the function `isPoetryProject()` along
with the configuration value, thereby reducing the need for a project to
have to declare a configuration override.

Refs serverless#324
Refs serverless#344
Fixes serverless#400

Signed-off-by: Mike Fiedler <[email protected]>
bsamuel-ui pushed a commit that referenced this pull request May 4, 2020
During the evaluation in the package phase, we determine whether a
`requirements.txt` file exists, or whether we need to generate one.

Since the `pyproject.toml` file is used by poetry, but only if a stanza
is contained inside the file, use the function `isPoetryProject()` along
with the configuration value, thereby reducing the need for a project to
have to declare a configuration override.

Refs #324
Refs #344
Fixes #400

Signed-off-by: Mike Fiedler <[email protected]>
Aubtin pushed a commit to Aubtin/serverless-python-requirements that referenced this pull request Sep 16, 2020
During the evaluation in the package phase, we determine whether a
`requirements.txt` file exists, or whether we need to generate one.

Since the `pyproject.toml` file is used by poetry, but only if a stanza
is contained inside the file, use the function `isPoetryProject()` along
with the configuration value, thereby reducing the need for a project to
have to declare a configuration override.

Refs serverless#324
Refs serverless#344
Fixes serverless#400

Signed-off-by: Mike Fiedler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pyproject.toml does not mean you want to use poetry
2 participants